package com.frcdi.qms.equipment.service;

import com.frcdi.qms.equipment.domain.EquipmentCommunication;

import java.util.List;

/**
 * 设备通讯配置Service接口
 *
 * @author cell
 * @date 2023-12-26
 */
public interface IEquipmentCommunicationService
{
    /**
     * 查询设备通讯配置
     *
     * @param id 设备通讯配置主键
     * @return 设备通讯配置
     */
    public EquipmentCommunication selectEquipmentCommunicationById(Long id);

    /**
     * 查询设备通讯配置列表
     *
     * @param equipmentCommunication 设备通讯配置
     * @return 设备通讯配置集合
     */
    public List<EquipmentCommunication> selectEquipmentCommunicationList(EquipmentCommunication equipmentCommunication);

    /**
     * 新增设备通讯配置
     *
     * @param equipmentCommunication 设备通讯配置
     * @return 结果
     */
    public int insertEquipmentCommunication(EquipmentCommunication equipmentCommunication);

    /**
     * 修改设备通讯配置
     *
     * @param equipmentCommunication 设备通讯配置
     * @return 结果
     */
    public int updateEquipmentCommunication(EquipmentCommunication equipmentCommunication);

    /**
     * 批量删除设备通讯配置
     *
     * @param ids 需要删除的设备通讯配置主键集合
     * @return 结果
     */
    public int deleteEquipmentCommunicationByIds(Long[] ids);

    /**
     * 删除设备通讯配置信息
     *
     * @param id 设备通讯配置主键
     * @return 结果
     */
    public int deleteEquipmentCommunicationById(Long id);

    public boolean checkequipmentUnique(EquipmentCommunication equipmentCommunication);
}
